<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>武汉同兴一站办企业服务有限公司 管理中心 - 商品列表</title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/Public/Admin/Styles/general.css" rel="stylesheet" type="text/css" />
<link href="/Public/Admin/Styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>
    
    <span class="action-span"><a href="<?php echo U('goods/add');?>">商品列表</a></span>
    <span class="action-span1"><a href="<?php echo U('/index.php/Admin');?>">武汉同兴一站办企业服务有限公司 管理中心</a></span>
    <span id="search_id" class="action-span1"> - 商品列表 </span>
    <div style="clear:both"></div>

</h1>
<div class="main-div">
    
<div class="form-div">
    <form action="<?php echo U('index');?>" name="searchForm" method="post">
        <img src="/Public/Admin/Images/icon_search.gif" width="26" height="22" border="0" alt="search" />
        <!-- 分类 -->
        <select name="type_id">

            <option  name="type_id" value="0">|&#45;&#45;请选择</option>
            <?php if(is_array($type)): $i = 0; $__LIST__ = $type;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option  name="type_id" value="<?php echo ($vo["class_id"]); ?>"/>|&#45;&#45;<?php echo ($vo["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
            
        </select>

        <!-- 推荐 -->
      <!--  <select name="intro_type">
            <option value="0">全部</option>
            <option value="is_rec" <?php if(($_GET['intro_type']) == "is_rec"): ?>selected="selected"<?php endif; ?>>推荐</option>
            <option value="is_new" <?php if(($_GET['intro_type']) == "is_new"): ?>selected="selected"<?php endif; ?>>新品</option>
            <option value="is_hot" <?php if(($_GET['intro_type']) == "is_hot"): ?>selected="selected"<?php endif; ?>>热销</option>
        </select>-->
        <!-- 上架 -->
     <!--   <select name="is_sale">
            <option value='0' >全部</option>
            <option value="1" <?php if(($_GET['is_sale']) == "1"): ?>selected="selected"<?php endif; ?>>上架</option>
            <option value="2" <?php if(($_GET['is_sale']) == "2"): ?>selected="selected"<?php endif; ?>>下架</option>
        </select>-->
        <!-- 关键字 -->
        关键字 <input type="text" name="goods_name" size="15" value=""/>
        <input type="submit" value="搜索 " class="button" />
    </form>
</div>

<!-- 商品列表 -->

    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>编号</th>
                <th>商品分类</th>
                <th>商品名称</th>
                <th>商品图片</th>
                <th>商品简介</th>
                <th>商品属性</th>
                <th>VIP专属</th>
                <th>上级会员的返利的积分</th>
                <th>上级会员的上级会员返利的积分</th>
                <th>状态</th>
                <th>加入时间</th>
                <th>成交量</th>
                <th>操作</th>
            </tr>

            <?php if(is_array($list)): $goodsID = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($goodsID % 2 );++$goodsID;?><tr>
                <td align="center"><?php echo ($goodsID); ?></td>
                <td align="center" class="first-cell"><span><?php echo ($vo["name"]); ?></span></td>
                <td align="center"><span onclick=""><?php echo ($vo["goods_name"]); ?></span></td>
                <td align="center"><img style="width: 200px;height: 150px;display: block" src="<?php echo ($vo["goods_img"]); ?>"></td>
                <td align="center"><span><?php echo ($vo["goods_intro"]); ?></span></td>
                <td align="center"><span><?php echo ($vo["attribute"]); ?></span></td>
                <?php if($vo['vip_exclusive'] == 0): ?><td align="center"><span>普通用户</span></td>
                    <?php else: ?>
                    <td align="center"><span><?php echo ($vo["vip_exclusive"]); ?>级商品</span></td><?php endif; ?>
                <td align="center"><span><?php echo ($vo["superior_user_integral"]); ?></span></td>
                <td align="center"><span><?php echo ($vo["supervisor_user_integral"]); ?></span></td>
                <td align="center"><img src="/Public/Admin/Images/<?php if(($vo["state"]) == "1"): ?>yes.gif<?php else: ?>no.gif<?php endif; ?>"/></td>
                <td align="center"><span><?php echo (date("Y-m-d H:i:s",$vo["insert_time"])); ?></span></td>
                <td align="center"><span><?php echo ($vo["volume"]); ?></span></td>
                <td align="center">

                <a href="<?php echo U('edit','goods_id='.$vo['goods_id']);?>" title="编辑"><img src="/Public/Admin/Images/icon_edit.gif" width="16" height="16" border="0" /></a>
                <a href="<?php echo U('dels','goods_id='.$vo['goods_id']);?>" onclick="" title="回收站"><img src="/Public/Admin/Images/icon_trash.gif" width="16" height="16" border="0" /></a></td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        </table>

        <!-- 分页开始 -->
        <table id="page-table" cellspacing="0">
            <tr>
                <td width="80%">&nbsp;</td>
                <td align="center" nowrap="true">
                    <?php echo ($data["pageStr"]); ?>
                </td>
            </tr>
        </table>
    <!-- 分页结束 -->
    </div>

</div>

<div id="footer">
共执行 3 个查询，用时 0.162348 秒，Gzip 已禁用，内存占用 2.266 MB<br />
版权所有 &copy; 2005-2012 武汉同兴一站办企业服务有限公司，并保留所有权利。</div>

</body>
</html>
<script type="text/javascript" src="/Public/Admin/JS/jquery-1.8.3.min.js"></script>